<div class="box">
 <div class="box_1">
   <form method="POST" name="listform" id="listform">
    <h3>
  <span><?php echo $this->_var['lang']['goods_img_list']; ?></span><a name='goods_list'></a>

  <!--
  <?php echo $this->_var['lang']['btn_display']; ?>：
  <a href="javascript:;" onClick="javascript:display_mode('list')"><img src="themes/default/images/display_mode_list<?php if ($this->_var['pager']['display'] == 'list'): ?>_act<?php endif; ?>.gif" alt="<?php echo $this->_var['lang']['display']['list']; ?>"></a>
  <a href="javascript:;" onClick="javascript:display_mode('grid')"><img src="themes/default/images/display_mode_grid<?php if ($this->_var['pager']['display'] == 'grid'): ?>_act<?php endif; ?>.gif" alt="<?php echo $this->_var['lang']['display']['grid']; ?>"></a>
  <a href="javascript:;" onClick="javascript:display_mode('text')"><img src="themes/default/images/display_mode_text<?php if ($this->_var['pager']['display'] == 'text'): ?>_act<?php endif; ?>.gif" alt="<?php echo $this->_var['lang']['display']['text']; ?>"></a>&nbsp;&nbsp;
  -->

  <a href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-<?php echo $this->_var['des_id']; ?>-<?php echo $this->_var['category']; ?>.html?display=<?php echo $this->_var['pager']['display']; ?>&page=<?php echo $this->_var['pager']['page']; ?>&sort=click_count&order=<?php if ($this->_var['pager']['sort'] == 'click_count' && $this->_var['pager']['order'] == 'DESC'): ?>ASC<?php else: ?>DESC<?php endif; ?>">按点击量</a>
  <a href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-<?php echo $this->_var['des_id']; ?>-<?php echo $this->_var['category']; ?>.html?display=<?php echo $this->_var['pager']['display']; ?>&page=<?php echo $this->_var['pager']['page']; ?>&sort=shop_price&order=<?php if ($this->_var['pager']['sort'] == 'shop_price' && $this->_var['pager']['order'] == 'ASC'): ?>DESC<?php else: ?>ASC<?php endif; ?>">按价格</a>
  <a href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-<?php echo $this->_var['des_id']; ?>-<?php echo $this->_var['category']; ?>.html?display=<?php echo $this->_var['pager']['display']; ?>&page=<?php echo $this->_var['pager']['page']; ?>&sort=last_update&order=<?php if ($this->_var['pager']['sort'] == 'last_update' && $this->_var['pager']['order'] == 'DESC'): ?>ASC<?php else: ?>DESC<?php endif; ?>">按成交量</a>

  <input type="hidden" name="category" value="<?php echo $this->_var['category']; ?>" />
  <input type="hidden" name="display" value="<?php echo $this->_var['pager']['display']; ?>" id="display" />
  <input type="hidden" name="page" value="<?php echo $this->_var['pager']['page']; ?>" />
  <input type="hidden" name="sort" value="<?php echo $this->_var['pager']['sort']; ?>" />
  <input type="hidden" name="order" value="<?php echo $this->_var['pager']['order']; ?>" />
  <input type="hidden" name="act_id" value="<?php echo $this->_var['act_id']; ?>" />
  <input type="hidden" name="des_id" value="<?php echo $this->_var['des_id']; ?>" />
  <input type="hidden" name="cid" value="<?php echo $this->_var['cid']; ?>" />

  </h3>

	<div style="width:100%;line-height:40px;">
	<dl class="check_list">
		<dt><strong>所属行业: </strong></dt>
		<dd>
			<a class="<?php if ($this->_var['category'] == 0): ?>here<?php endif; ?>" href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-<?php echo $this->_var['des_id']; ?>-0.html">全部</a>
			<?php $_from = $this->_var['categories2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat2_0_40676600_1380178543');if (count($_from)):
    foreach ($_from AS $this->_var['cat2_0_40676600_1380178543']):
?>
			<a class="<?php if ($this->_var['cat2_0_40676600_1380178543']['id'] == $this->_var['category']): ?>here<?php endif; ?>" href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-<?php echo $this->_var['des_id']; ?>-<?php echo $this->_var['cat2_0_40676600_1380178543']['id']; ?>.html"><?php echo htmlspecialchars($this->_var['cat2_0_40676600_1380178543']['name']); ?></a>
				<?php $_from = $this->_var['cat2_0_40676600_1380178543']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child_0_40713200_1380178543');if (count($_from)):
    foreach ($_from AS $this->_var['child_0_40713200_1380178543']):
?>
				<a class="<?php if ($this->_var['child_0_40713200_1380178543']['id'] == $this->_var['category']): ?>here<?php endif; ?>" href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-<?php echo $this->_var['des_id']; ?>-<?php echo $this->_var['child_0_40713200_1380178543']['id']; ?>.html"><?php echo htmlspecialchars($this->_var['child_0_40713200_1380178543']['name']); ?></a>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
		</dd>
		<dd style="clear:both;"></dd>
	</dl>
	<dl class="check_list">
		<dt><strong>设计师: </strong></dt>
		<dd>
			<a class="<?php if ($this->_var['des_id'] == 0): ?>here<?php endif; ?>" href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-0-<?php echo $this->_var['category']; ?>.html">全部</a>
			<?php $_from = $this->_var['shejishi_list2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'shej');if (count($_from)):
    foreach ($_from AS $this->_var['shej']):
?>
			<a class="<?php if ($this->_var['shej']['des_id'] == $this->_var['des_id']): ?>here<?php endif; ?>" href="category2-<?php echo $this->_var['cid']; ?>-<?php echo $this->_var['act_id']; ?>-<?php echo $this->_var['bb_id']; ?>-<?php echo $this->_var['shej']['des_id']; ?>-<?php echo $this->_var['category']; ?>.html"><?php echo htmlspecialchars($this->_var['shej']['des_name']); ?></a>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
		</dd>
		<dd style="clear:both;"></dd>
	</dl>
	<dl class="check_list">
		<dt><strong>设计风格: </strong></dt>
		<dd>
			<!--
			<a class="<?php if ($this->_var['act_id'] == 0): ?>here<?php endif; ?>" href="category2.php?id=<?php echo $this->_var['category']; ?>&des_id=<?php echo $this->_var['des_id']; ?>&act_id=0&bb_id=<?php echo $this->_var['bb_id']; ?>&cid=<?php echo $this->_var['cid']; ?>">全部</a>
			<?php $_from = $this->_var['goods_bbs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'bbs');if (count($_from)):
    foreach ($_from AS $this->_var['bbs']):
?>
			<a class="<?php if ($this->_var['bbs']['bb_id'] == $this->_var['act_id']): ?>here<?php endif; ?>" href="category2.php?id=<?php echo $this->_var['category']; ?>&des_id=<?php echo $this->_var['des_id']; ?>&act_id=<?php echo $this->_var['bbs']['bb_id']; ?>&bb_id=<?php echo $this->_var['bb_id']; ?>&cid=<?php echo $this->_var['cid']; ?>"><?php echo $this->_var['bbs']['bb_name']; ?></a>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			-->
			<select name="act_id" onchange="search_goods2()"><option value="0">选择全部...</option><?php echo $this->_var['goods_bbs']; ?></select>
		</dd>
		<dd style="clear:both;"></dd>
	</dl>
	<dl class="check_list">
		<dt><strong>活动类型: </strong></dt>
		<dd><select name="bb_id" onchange="search_goods2()"><option value="0">选择全部...</option><?php echo $this->_var['goods_bbs2']; ?></select></dd>
		<dd style="clear:both;"></dd>
	</dl>

	</div>
	<script type="text/javascript">
		function search_goods2(){
			document.getElementById("listform").submit();
		}
	</script>
 
  </form>
    <?php if ($this->_var['category'] > 0): ?>
  <form name="compareForm" action="compare.php" method="post" onSubmit="return compareGoods(this);">
    <?php endif; ?>

    <div class="centerPadd">
    <div class="clearfix goodsBox" style="border:none;">
    <?php $_from = $this->_var['goods_img_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_40845900_1380178543');$this->_foreach['goods_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['goods_list']['total'] > 0):
    foreach ($_from AS $this->_var['goods_0_40845900_1380178543']):
        $this->_foreach['goods_list']['iteration']++;
?>
    <?php if ($this->_var['goods_0_40845900_1380178543']['goods_id']): ?>
     <div class="goodsItem<?php if (( ($this->_foreach['goods_list']['iteration'] - 1) + 1 ) % 3 == 0): ?> margin_right_none<?php endif; ?>">
	<span class="goods_ab">精</span>
        <a href="<?php echo $this->_var['goods_0_40845900_1380178543']['url']; ?>"><img src="<?php echo $this->_var['goods_0_40845900_1380178543']['goods_img']; ?>" alt="<?php echo $this->_var['goods_0_40845900_1380178543']['goods_name']; ?>" class="goodsimg" /></a>
	<p>
	<?php echo $this->_var['goods_0_40845900_1380178543']['short_name']; ?><br />
	所属商品：<?php echo $this->_var['goods_0_40845900_1380178543']['cat_name']; ?></br>
	<?php echo $this->_var['lang']['market_price']; ?><font class="market"><?php echo $this->_var['goods_0_40845900_1380178543']['market_price']; ?></font><br />
    <?php if ($this->_var['goods_0_40845900_1380178543']['promote_price'] != ""): ?>
	促销价：<font class="shop"><?php echo $this->_var['goods_0_40845900_1380178543']['promote_price']; ?></font><br />
    <?php else: ?>
	商城价：<font class="shop"><?php echo $this->_var['goods_0_40845900_1380178543']['shop_price']; ?></font><br />
    <?php endif; ?>
	</p>
	<div class="goods_btn">
		<a class="left" href="javascript:;" onClick="Compare.add(<?php echo $this->_var['goods_0_40845900_1380178543']['goods_id']; ?>,'<?php echo htmlspecialchars($this->_var['goods_0_40845900_1380178543']['goods_name']); ?>','<?php echo $this->_var['goods_0_40845900_1380178543']['cat_id']; ?>','<?php echo $this->_var['goods_0_40845900_1380178543']['goods_thumb']; ?>')">对比</a>
		<a class="right" href="javascript:collect(<?php echo $this->_var['goods_0_40845900_1380178543']['goods_id']; ?>);" class="f6">加入收藏</a>
	</div>
        </div>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </div>
    </div>

  <?php if ($this->_var['category'] > 0): ?>
  </form>
  <?php endif; ?>

 </div>
</div>
<div class="blank5"></div>
<script type="Text/Javascript" language="JavaScript">
<!--

function selectPage(sel)
{
  sel.form.submit();
}

//-->
</script>
<script type="text/javascript">
window.onload = function()
{
  Compare.init();
  fixpng();
}
<?php $_from = $this->_var['lang']['compare_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
<?php if ($this->_var['key'] != 'button_compare'): ?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php else: ?>
var button_compare = '';
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
var compare_no_goods = "<?php echo $this->_var['lang']['compare_no_goods']; ?>";
var btn_buy = "<?php echo $this->_var['lang']['btn_buy']; ?>";
var is_cancel = "<?php echo $this->_var['lang']['is_cancel']; ?>";
var select_spe = "<?php echo $this->_var['lang']['select_spe']; ?>";
var compare_title_goods = "<?php echo $this->_var['lang']['compare_title_goods']; ?>";
var compare_goods_max = "<?php echo $this->_var['lang']['compare_goods_max']; ?>";
var compare_goods_close = "<?php echo $this->_var['lang']['compare_goods_close']; ?>";
var compare_goods_start = "<?php echo $this->_var['lang']['compare_goods_start']; ?>";

</script>